package com.example.myaudiorecorder;

import android.app.Application;

import java.io.File;

/**
 * author : youwei.sun
 * date   : 2022/4/28 11:36
 * desc   :
 * version: 1.0
 */
public class App extends Application {

    protected static App instance;

    public static final String RECORD_FILES = "ARecordFiles";

    public App() {
        instance = this;
    }

    public static App get() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        this.instance = this;
    }

    public static String getRootDirPath() {
        return instance.getDataDir().getAbsolutePath();
    }
}
